import request from '@/utils/request'

export default {
  // 医院设置添加
  saveHospitalSet(hospitalSet){
    return request({
      url: `/admin/hospital/hospitalSet/saveHospitalSet`, 
      method: 'post',
      data: hospitalSet // 使用json
    })
  },

  // 医院设置列表
  getHospitalSetList(current, limit, searchObj) {
    return request({
      url: `/admin/hospital/hospitalSet/findPageHospitalSet/${current}/${limit}`,
      method: 'post',
      data: searchObj // 使用json
    })
  },
  // 医院设置删除
  deleteHospitalSet(id) {
    return request({
      url: `/admin/hospital/hospitalSet/${id}`,
      method: 'delete'
    })
  },
   // 医院设置批量删除
  deleteBatchHospitalSet(idList){
    return request({
      url: `/admin/hospital/hospitalSet/batchRemove`,
      method: 'delete',
      data: idList
    })  
  },

    // 医院设置锁定与解锁
    lockHospitalSet(id,status){
    return request({
      url: `/admin/hospital/hospitalSet/lockHospitalSet/${id}/${status}`,
      method: 'put',
    })  
  },
  // 医院设置添加
  saveHospitalSet(hospitalSet){
    return request({
      url: `/admin/hospital/hospitalSet/saveHospitalSet`,
      method: 'post',
      data: hospitalSet
    })  
  },

  // 查询 单个 医院设置
  getHospitalSet(id){
    return request({
      url: `/admin/hospital/hospitalSet/getHospitalSet/${id}`,
      method: 'get'
    })  
  },

  // 更新医院设置
  updateHospitalSet(hospitalSet){
    return request({
      url: `/admin/hospital/hospitalSet/updateHospitalSet`,
      method: 'post',
      data: hospitalSet
    })  
  },

}

